<?php



class LapsoMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.LapsoMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('sindes');

		$tMap = $this->dbMap->addTable('lapso');
		$tMap->setPhpName('Lapso');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('CP_LAPSO', 'CpLapso', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addColumn('CF_DECANATO', 'CfDecanato', 'string', CreoleTypes::BIGINT, true, null);

		$tMap->addColumn('DESCRIPCION', 'Descripcion', 'string', CreoleTypes::VARCHAR, true, 50);

		$tMap->addColumn('FECHA_INICIO', 'FechaInicio', 'int', CreoleTypes::DATE, true, null);

		$tMap->addColumn('FECHA_FINAL', 'FechaFinal', 'int', CreoleTypes::DATE, true, null);

		$tMap->addColumn('ESTATUS', 'Estatus', 'string', CreoleTypes::CHAR, true, 1);

	} 
} 